// @ts-ignore
/* eslint-disable */
import request from '@/utils/request';

/** 新增供应商&经销商 POST /fds/supply/addSupplies */
export async function addSuppliesUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.addSuppliesUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<API.Pinyin_13>('/fds/supply/addSupplies', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 新增供应商&经销商往来账 POST /fds/supply/addSuppliesAcclog */
export async function addSuppliesAcclogUsingPOST(
  body: API.SupCurAccParam,
  options?: { [key: string]: any },
) {
  return request<API.Pinyin_15>('/fds/supply/addSuppliesAcclog', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 审核供应商&经销商往来账 POST /fds/supply/checkSuppliesAcclog */
export async function checkSuppliesAcclogUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.checkSuppliesAcclogUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<boolean>('/fds/supply/checkSuppliesAcclog', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 删除供应商&经销商往来账 POST /fds/supply/deleteSuppliesAcclog */
export async function deleteSuppliesAcclogUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deleteSuppliesAcclogUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<boolean>('/fds/supply/deleteSuppliesAcclog', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 导出财务统计 POST /fds/supply/exportFinList */
export async function exportFinListUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.exportFinListUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<any>('/fds/supply/exportFinList', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 导出财务记录 POST /fds/supply/exportFinRecordList */
export async function exportFinRecordListUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.exportFinRecordListUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<any>('/fds/supply/exportFinRecordList', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 导出供应商&经销商账户列表 POST /fds/supply/exportSpAccList */
export async function exportSpAccListUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.exportSpAccListUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<any>('/fds/supply/exportSpAccList', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 导出供应商&经销商往来账 POST /fds/supply/exportSpAcclogList */
export async function exportSpAcclogListUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.exportSpAcclogListUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<any>('/fds/supply/exportSpAcclogList', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 导出供应商&经销商列表 POST /fds/supply/exportSupplyList */
export async function exportSupplyListUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.exportSupplyListUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<any>('/fds/supply/exportSupplyList', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取财务记录列表 POST /fds/supply/getFinancialRecordsList */
export async function getRecordsListUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getRecordsListUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResultSpAcclogDto_>('/fds/supply/getFinancialRecordsList', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取财务统计列表 GET /fds/supply/getFinancialStatisticsList */
export async function getFinancialStatisticsListUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getFinancialStatisticsListUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResultSpFinStaDto_>('/fds/supply/getFinancialStatisticsList', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取供应商&经销商详情 GET /fds/supply/getSupplies */
export async function getSuppliesUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getSuppliesUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.SuppliesDto>('/fds/supply/getSupplies', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取供应商&经销商往来账详情 GET /fds/supply/getSuppliesAcclog */
export async function getSuppliesAcclogUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getSuppliesAcclogUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.SpAcclogDto>('/fds/supply/getSuppliesAcclog', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取供应商&经销商往来账列表 GET /fds/supply/getSuppliesAcclogList */
export async function getSuppliesAcclogListUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getSuppliesAcclogListUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResultSpAcclogDto_>('/fds/supply/getSuppliesAcclogList', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 查询供应商&经销商账户 POST /fds/supply/getSuppliesAccount */
export async function getSuppliesAccountUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getSuppliesAccountUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<API.Pinyin_02>('/fds/supply/getSuppliesAccount', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取供应商&经销商账户列表 POST /fds/supply/getSuppliesAccountList */
export async function getSuppliesAccountListUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getSuppliesAccountListUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResult12>('/fds/supply/getSuppliesAccountList', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** (下拉框用)获取供应商&经销商列表 POST /fds/supply/getSuppliesList */
export async function getSuppliesListByTypeUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getSuppliesListByTypeUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResult11>('/fds/supply/getSuppliesList', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取供应商&经销商列表 POST /fds/supply/getSuppliesPage */
export async function getSuppliesListUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getSuppliesListUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResultSuppliesDto_>('/fds/supply/getSuppliesPage', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 合并供应商 POST /fds/supply/mergeSupplies */
export async function mergeSuppliesUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.mergeSuppliesUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<boolean>('/fds/supply/mergeSupplies', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 反审核供应商&经销商往来账 POST /fds/supply/unCheckSuppliesAcclog */
export async function unCheckSuppliesAcclogUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.unCheckSuppliesAcclogUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<boolean>('/fds/supply/unCheckSuppliesAcclog', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 修改供应商&经销商信息 POST /fds/supply/updateSupplies */
export async function updateSuppliesUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.updateSuppliesUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<API.Pinyin_13>('/fds/supply/updateSupplies', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 修改供应商&经销商往来账详情 POST /fds/supply/updateSuppliesAcclog */
export async function updateSuppliesAcclogUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.updateSuppliesAcclogUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<API.Pinyin_15>('/fds/supply/updateSuppliesAcclog', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 修改供应商&经销商账户 POST /fds/supply/updateSuppliesAccount */
export async function updateSuppliesAccountUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.updateSuppliesAccountUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<API.Pinyin_02>('/fds/supply/updateSuppliesAccount', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
